package com.ojoin.trade.common_core.web.service;

import java.util.List;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserExceptionorder;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-11-17
 * Time: 上午10:18
 * To change this template use File | Settings | File Templates.
 */
public interface TbMerchantuserExceptionorderBaseService extends BaseService<TbMerchantuserExceptionorder>{

	/**
	 * 新增异常订单记录
	 * @param vo
	 * @throws BusinessException
	 */
	public Integer insertMerchantuserExceptionorder(TbMerchantuserExceptionorder vo) throws BusinessException;
	
	/**
	 * 查询指定九盈用户的异常订单记录
	 * @param joinuserid
	 * @return
	 * @throws BusinessException
	 */
	public List<TbMerchantuserExceptionorder> queryExceOrderByJoinuserID(
			int joinuserid) throws BusinessException;

	/**
	 * 更新异常订单记录
	 * @param order
	 * @return
	 * @throws BusinessException
	 */
	public int updateVOById(TbMerchantuserExceptionorder order)
			throws BusinessException;
	
	/**
	 * 更新异常订单记录
	 * @param order
	 * @return
	 * @throws BusinessException
	 */
	public int updateVOByOrderId(TbMerchantuserExceptionorder order)
			throws BusinessException;
	
	/**
	 * 查询指定九盈用户是否存在未解冻异常订单，是否已冻结
	 * @param joinuserid
	 * @return
	 * @throws BusinessException
	 */
	public boolean isFreezeByJoinuserID(int joinuserid) throws BusinessException;
	
	/**
	 * 根据订单流水号查询对应异常订单信息
	 * @param orderid
	 * @return
	 * @throws BusinessException
	 */
	public TbMerchantuserExceptionorder queryExceOrderByOrderID(String orderid) throws BusinessException;
	
}
